<template>
  <el-pagination
    @size-change="handleSizeChange"
    @current-change="handleCurrentChange"
    :hide-on-single-page="false"
    :current-page="pageObj.page"
    :pager-count="7"
    :page-sizes="[10, 20, 30, 40, 50]"
    :page-size="pageObj.size"
    background
    layout="total,sizes,prev, pager, next"
    :total="pageObj.total"
  >
  </el-pagination>
</template>
<script>
export default {
  name: "pagination",
  props: {
    pageObj: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {};
  },
  components: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {
    handleSizeChange(e) {
      this.$emit("handleSizeChange", e);
    },
    handleCurrentChange(e) {
      this.$emit("handleCurrentChange", e);
    },
  },
};
</script>
<style scoped lang="scss"></style>
